//
//  ContractPageViewController.swift
//  HuaYun
//
//  Created by enghou on 2018/10/11.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

class ContractPageViewController: PagedViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    override func configTitles() -> Array<String> {
        return ["基本信息","关联信息","开票回款信息"]
    }

    override func configViewControllers() -> [UIViewController] {
        
        let baseinfo = TitleContentTableViewController()
        
        let contents = [["合同名称":""],["合同编号":""],["K2":"编号"],["签订金额(元)":""],["合同分类":""],["签订日期":""],["合同开始日期":""],["合同结束日期":""],["归属部门":""],["客户经理":""],["客户单位":""],["客户单位联系人":""],["联系人电话":""],["收入来源":""],["是否质保金":""],["质保金 (元)":""],["收款方式":""],["收款方式说明":""]];
        
        baseinfo.source = contents
        
        let potentialAssociate = PotentialAssociateTableViewController()
        
        let backInfo = TitleContentTableViewController()
        
        let backsource = [["累计已开票(含税/元)":""],["累计已回款(含税/元)":""],["开票未回款":""],["预收款(含税/元)":""],["开票回款比例":""],["合同回款比例":""]]
        
        baseinfo.source = backsource
        
        return [baseinfo,potentialAssociate,backInfo]
    }
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
